package com.hcl.orm.core.configuration;

import com.hcl.orm.core.dialect.handler.SqlDialectHandlerFactory;
import com.hcl.orm.core.executor.DataSourceTypeLookup;
import com.hcl.orm.core.executor.DefaultDataSourceTypeLookup;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 文件描述
 *
 * @ProductName: Hundsun HEP
 * @ProjectName: jres-kafka-test
 * @Package: com.jres.kafka.configuration
 * @Description: note
 * @Author: hucl
 * @CreateDate: 2020/7/24 11:17
 * @UpdateUser: hucl
 * @UpdateDate: 2020/7/24 11:17
 * @UpdateRemark: The modified content
 * @Version: 1.0
 * @date <p>
 * Copyright © 2020 Hundsun Technologies Inc. All Rights Reserved
 **/
@Configuration
public class OrmConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public DataSourceTypeLookup dataSourceTypeLookup() {
        return new DefaultDataSourceTypeLookup();
    }

}
